package com.gitee.jiaojinxin.oauth2.resource.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("resource2")
public class TestController {

    @Value("${spring.application.name}")
    private String springApplicationName;

    @GetMapping("hello")
    public String hello() {
        return "hello " + springApplicationName + "！";
    }
}
